package dto

import "gorm.io/gorm"

// ProxyDomain 代理域名表
type ProxyDomain struct {
	gorm.Model
	MatchTailDomain     string              `form:"matchTailDomain" json:"matchTailDomain" xml:"matchTailDomain" gorm:"size:30;not null:true;comment:匹配的尾部域名"`
	IsMatchDomainSuffix bool                `form:"isMatchDomainSuffix" json:"isMatchDomainSuffix" xml:"isMatchDomainSuffix" gorm:"not null:true;default:1;comment:是否匹配域名后缀"`
	Cid                 uint                `form:"cid" json:"cid" xml:"cid" gorm:"not null:true;comment:域名类型的外键"`
	ProxyDomainCategory ProxyDomainCategory `gorm:"foreignKey:Cid"`
}
